I'm not sure if is a good idea to make this change. Passing sum from local to global implies one more byte when we use the lib.