Adding shuffle function and setting.