Removes uncesserary stuff