Ok I have it working now. I ended up using a combination of this code and some newer code for objects following paths. The camera flies on the path and keeps the target in view. All I have to do now is smooth out the motion so it's not jerky.