Changed status function to pick out maximum.