Added maxHeight option