Move around definitions so they aren't called before assignment