Added patient average script and data