Added 'forward' method and optimized 'redirect'.