Add total_bytes method