Online users function created.