I'm not sure if this should go in a different file or not.  If you want to keep it in this file, I think I'd just move it below the main recommendation code.