Added get sizes function.