Fixed erroneously removed script API function.