Modified code to provide an example of eap.