Use domain to catch errors