Thank you for putting this together. These function are helpful, if I have anything to add I will create a PR