Added scripting APIs for the previous convenience functions