Make a wrapper function to remove boilerplate from wrapping functions