MAINLOOP and mainloop are different things
No, they're not in this case. PBP is not case sensitive.

/Henrik.