Inserted try/catch around gelmandiag.