Add some slightly better line buffering.