Break if dimension is found