Finished first version of the targeting module