Got this fucker working again

This was a pain in the ass