Whacky way of getting it done. :)

* Using tap() to construct the res_hash. Wow. Unreadble? Sure. Cool? Sure-er!