Add my_if & counter