Cleaned up the main server loop