Added default error handler and a simple rule.