Support swapping samples