Added new filter so we can retrieve layers in subfolders in loadFoldersById.