Optimize the sumOptions

closes #202