Refactored reporting functions.