9 Months Ago
Refactor set target code into a separate function so we can re-use it.