Addition of code to create export report - NOT COMPLETE