Updated Plugin

Made some changes to the api calls