Deleted duplicate code