Updating control and removing unecessary files