Added ability to specify script attributes