Added more script functions.