Added an improved prototype for const methods.