Adapted the loader code (in orbit.php)