Added dir restriction