Ok, will use printf() to keep the example as simple as possible.
Thanks