Added a few lines of code for the presence list