Just made some small changes to the code