RR: finalise script tis working standalone.