Preparing for the directory layer