The functional code is nearly written now.