Changed the way directories work