Use LOG(..) macro instead of cerr.