Add explicit requirements
Move main code into feat_for_title

This will make it easier to test.