Statistical calculations added