Added directory structure and task distribution