Added commitChanges if advanced calculator is used