Adding errors first callback structure. Fixes #3.