Added direction to functions working with edit scripts