Remove thrown errors, replace with Either types.