added code for lane shuffling.