Fixed missing output redirection