Re-organized netcode, fixed refresh rate limit.