Added redirect feature. Fixed constant permission asking.

REQUIRES TRACE TO BE ENABLED NOW