Placed customer recognition code into its own function.