Pseudo-code writeup, check if hash, loop through hash