Use the 'request' filter instead of 'init' routine.