Add some more functions for scriptObject.