Adds target support. Fixes #117.
Merge pull request #118 from ben-eb/target-support

Adds target support. Fixes #117.