Make num keys configurable