Added sharedFunctions