Update imanager.php