Initial code for Auto Target generation.