Added settings class
Std.int fix on flash