Move maxY to config