Making report generating synchronous to prevent too many files being opened.