Moved try/catch wrapper.