Rearranged the scripts a little bit.