Script pseudo code