Redirecting output to console