Removed accidental duplicate code