Added a bunch of commands to api.php