Added basic script functionality