Setting max limit of dimensions to 5000