Common function will script uses.
Revert "Common function will script uses."

This reverts commit 41b537771c2f9fd9fbee8610bd80a3c95d021822.