Add error catching,variable assignment style