The Maharashtra Association of Resident Doctors (MARD), whose around 4,000 members went on a mass casual leave agitation since Monday in all public hospitals, filed an affidavit with the high court that the resident doctors were prepared to work but the government and hospitals should assure them of safety and security.