Finished the new Flashdex function.