Fixed duplicate variables + changed void name