Moved to prototype methods in the template