Adding method to update processing state