Select problem by type

Internal/temporary PR for review.
It's weird that something like this doesn't exist already.