Forall intents - the initial implementation.

This function is almost large enough to break into two, especially if you supply a header comment.