Implement flexible target specification

See commit message.
This should probably default to false