Added method for analytics