Adding debugging for receiving an advertisement.