Implemented mirror flag for summation and integral