Add gensum and mindep