Improved error handling

It's now possible to use the manipulation method for some validation.