Added exit after redirect