Implementation of script methods