Use background process in production mode only.