Changed methods to prototype methods