Added return settings function