Improved functionality outside interactive shells