Moved reports into functions.