Added main-func for projects