Get by hour bucket
Changed a bit the app struct, added the config / flag readers