Work with portal-core runscript support