Add condition in embedded dirty tracking method