In the disastrous 1541 campaign of Algiers, weather conditions prevented the firing of arquebuses. Problems were caused on both wheellocks and matchlocks, firstly by wind blowing away the gunpowder when the pan cover was opened during priming, and secondly, by rain wetting matches and gunpowder. In less than three decades, the lock known today as the miquelet lock was developed.