Refactored Like code to use delegation.