Fixed function caller sync on mutation and replaced requireinfunction, which was accidentally deleted