Twisted spaghetti code

https://ift.tt/2uQZH3Q