Added button array length to config and initialized boolean array