Add exception on setPeriod + update test;
Add extended settings format