Replace timestamp with duration field