Enigma! This magically works but will refactor again later