Optimized project.c