Removing the unused cnt variable