Error handling WIP.