Added new analytics functions