Added patient ID tracking