Updated code usage to have default directory