Current working version, time to add mean