Improved 3rd line generation