I convert the code to lite-c.
Download the lite-c version here

Greetings Ralph.