Add utility functions for composing more complex functions