Modifications to getOnlineUsers