Porting/rewriting error conditions.