Make history and chip length configurable.