Add a helper method for accessing script variables