Sum Q and Sum S added