Introduced methods into directory.rb