const on all parameters and variables, where possible.