Remove unneeded function, fix file ref