Added logic for getting projects