Created methods for setting and updating phrase_id_array.