Holds error handing.