Did some exception handling