Can now execute command functions in threads