Corrected directory specific code