Fixed small typos. Moved renderReport call to a callback function.