Fixed the horribly written function is_already_done