Pandit Kalhan's 12th century text, the 'Rajatarangini' (composed around 1148-1150 AD), which chronicles the history of Kashmir, describes a well conceived and maintained irrigation system. One of the most notable names recorded in the 'Rajatarangini' is Suyya. He is credited with "draining the water of the Vitasta River and controlling it by constructing a stone dam, and clearing its bed."