Moving methods to prototype.