Fixed (Again) and Optimized SDN - Credits to: Dakota628