Clean up log and add _compat.