Add try catch to stdv