Introduce integrity check and day-time layered freq counter [#8][#36]