Added a function

I added a function