Declared more function arguments to be "const" - improves compiler optimisation.