The match looked destined for penalties before Millar's last gasp strike to see Elgin past their Second Division opponents and through to the second round of the CIS Insurance Cup.