Code

Code I want to share as it may help someone out.