Filter history in more steps so we can show correct last rows.