Patient agent up to step4
Fix the condition in done()