Pesantren provide to Indonesian citizens at low cost; although today some modern pesantren charge higher fees than previously, they are still significantly cheaper than non-pesantren educational institutions. The traditional pattern was for students to work in the headmaster's rice fields in exchange for food, shelter, and education.