Added maximum portal size configuration option.