Small changed to Logger and User STAT. Also added new error handling method.