Improved script inheritance