Converting c-script to lite-c can be a bit of a pain. The link below will help. BKReplaceEm will save you some time.

Migration to Lite-C