Added ability to handle errors