Add maximum limits to brick size, and fix bug that makes new brick-number-setting useless.