Shoehorn in domains for error-handling