Removing unsued code