Create collectPaths, trying to clean the code.