Fixing up the drone script to stop it from hanging; knowing about redirects