History length as constructor argument