Make days and hours configurable, add (de)serialization