Finally in 504, the Romans gained the upper hand with the renewed investment of Amida, leading to the hand-over of the city. That year an armistice was agreed to as a result of an invasion of Armenia by the Huns from the Caucasus. Negotiations between the two powers took place, but such was their distrust that in 506 the Romans, suspecting treachery, seized the Persian officials. Once released, the Persians preferred to stay in Nisibis. In November 506, a treaty was finally agreed upon, but little is known of what the terms of the treaty were. Procopius states that peace was agreed for seven years, and it is likely that some payments was made to the Persians.