Redirection > sort of works, prints at weird times though