Init and task function added to project.cpp