Added settingslogic to gem