Collecting device usage data