Added support for skipping directories