Implemented try/catch exceptions