New computeDimensions, fixed some spelling.