Added support for take over
Fixed missing semicolon in takeover.php