[FEAT] Implement working inversion counter function
[FIX] remove extraneous console logs