Implementing script evaluation