Introduced storeFunctionAndFilename and functionAndFilename steps because this is a reoccuring operation.