Moved try/catch position