Setting up error module.