Added option to throw errors