Shuffle some logic