Thank you for your responses. :D
I'm not sure where it went wrong. Earlier, when I have added a function I was not able to call it. Now, after deleting the function and restarting the launcher, I'm able to call the function.
This looks strange but who cares, now it works. :D