emgm: Implement min/sum