Add try block