Separate method for greeting generation.