Finished fixing up the rest API addition. Modified cancel to use the new REST API.