Helper functions to cut down on boilerplate