Updated example to use hash and not id