Use try except error checking