Used quihw's again, minus all of the unneded changes from the origional mana client.