Add the function checkFolder to the main runonce.