Add functions to prototype