Added error handling clause.