Removes non-necessary code