Create command by passing in functions