add support to the built-in step counter.