Another approach for error handing.