Extracted the random data generator and the unique user id and session to proper categories