Yes, I define it earlier (the initial post has the rest of the code), and it does return an integer.

Thanks in advance.