Allow a user to specify a function to override the origin