Create docFunctions