Added userstatistics funstions