Perhaps the try/catch is messing things up