By about 1940 the building was derelict except for the prayer hall and tomb. Repairs started in 1964, and in 1976, the building was turned into a mosque. In 1980, a minaret and a sadirvan were built over the mosque.[2]