Updated some of the commands

seems like some of the API have somewhat changed slightly, so the code was not running any more.