Added pagination.
Clear old data.