Adds target support. Fixes #117.