Modified shuffle method