Added check for max. defined dimension.