Fixed all current errors relating to a function not existing