Move methods to prototype.