Updated from what's in cloudpebble. pre-settings implmentation