Implementing report functionality