Using script to implement promotion features