Added "!" to compact method; Don't update records in compact method if no changes needed