Polished solution for good stdout display. Last commit.