Switch to timespan for interval values, add logic library with unity