Add support for handling folders.