I don't know if this is too much to ask but could you explain what the 3 functions in your code do? I have been trying to look them up online but I am having trouble finding good answers. I am obviously new to API functions, so any help you could give would be great.