Does the function work for others?
Perhaps it conflicts with something else in my project or perhaps I making some mistake with calling the function.