Update overburdened function

Also removed unneeded int->int->double->int conversion