Adjusted data preparation function to accommodate the movement of directory structures on server side project directory