Changed a few of the commands to make this work. Seems like the API was slightly changed since this was written.