Cleaned up the main cycle, moved logic in the DefaultActionReceiver