Added processing for directory browsing