Add script mode to ObjectHash