Added some corrections on Ahune's script.