Removes unnesecary lines of code