The first few Islamic hospitals that arose in Baghdad, in the early 9th century, were to quarantine those who suffered from leprosy. At first, it was considered by many as a "leprosorium" due to its limited purpose; nonetheless, these hospitals still salaried doctors whose specialties were not solely limited to leprosy. The function of these hospitals soon became diversified over time as newly built hospitals in Baghdad began to incorporate the knowledge from Islamic physicians, scientists such as Al-Razi. Al-Razi's hospital in Baghdad, had 24 physicians on staff; these physicians had diverse specialties, including, physiologists, occultists, surgeons, and bonesetters. In about one hundred years, there were five more bimaristans that had been built around Baghdad because the bimaristans had proved to be helpful, which was grounds for building more in order to serve more people.