Refs #4 - Set functions on the prototype so that separate ones are not created for every instance.