Tested and working.
Feel free to ask any questions, thanks for looking!