Refactored paging and message params to their relevant structs