Initial copy from pawny.

It will be changed so hardly that i'm not sure it worth credit