Allowing functions to be callable in other cripts and adding diff support