Improved MakingPatients code - Miki