Deleted duplicate code.