Modify Qe calculation