Figured it out.

Moved everything inside the Kixtart script. Seems to work fine.

Thanks!