Borislav,
If no one has replied to your message you can edit it after posting, use the Update button at the bottom of your message.
>Sorry I need to change the following line
>from:
>
>FOR next_loop = 1 TO diff
>
>
>to
>
>
>FOR next_loop = 0 TO diff
>