Finished mix_up function