Added some const-ness to parameters.