Could not you create some function via prototype?