Removing annecessary variables