Add some script-like methods.