Add reporting functionality, probably buggy.