Deleting off unnecessary code