Added stats script and helper methods file