Added beginnings of function definition collection pass