Variant of countdown for Electric Imp