Shuffle function definitions.