Add a sub-function to a post function