Added provision for error ok