Added retry handling in block_now_count_overflow case.
Refactored codes.
Added flags to toggle experimental features.