The original code would require an updateTarget() call immediately before the return statement. I'm betting that's not needed but I might be wrong...