Adding error relaxation.

Closes #4