Error handler added.