Added simple average calculation