Add the ability for hash

and also add a flag