(feat) Cookie.

Could you use `.filter` for this and then make the inner loop cleaner?