Added post operation, fixed sum function