Updated getDimension method in common