Updated script to support 1.0.2