Changed hash to id
Added ability to read hash from path