Helper functions to easily add functionality to functions
