Improved sed commands