Added pendingUsers function