Added globals back in, broke it last time.