Added a few local refs to get_dimensions