Added local statistics.

The user statistics are logged in local XML file.