Added hash support.
Added licence.