Fixed sneaky NULL fptr call causing segfault, also added some debug logs. Segfault still occuring