Configuring the presence listener