Add updateTrial method