@ChrisHardie
Check the original post – I refactored it to make it easier to use!