Moved err callback out of options