Add Either error detection