Refactored marker_tf assignment.