Added overloaded function to GetTarget

I think this can be a useful function, I will be using it in my new assembly for Zed.