Fix bug and improve logic in circular buffer.
Add logic to get and update current fingers state.