Adds support for multiple directories