Changed default value of parameter "totalVar" due to issues