Updated with new report creation function for pauls needs.