Removed some unneccessary libraries and variables.