Added getTypeByHash which should have been done...