Moved histogram and sum aggreagate