Removed unused offset var.