Commented out average code