Fixed issue where target setting wasn't being respected.