Added the createReport function, but not complete.