Use prototype for public methods.