Run command on a different function