Revise script to follow spec.