Advice from CaptainRedmuff

https://gist.github.com/CaptainRedmuff/b117710eac04d4d8e3d4