Added configurable resources directory.