Now injected functions can throw errors