Media redirect script now has debug messages.