Added error catch and status information.