Moved project processing to its own method