Error handling work in progress.