Dodanie obslugi komendy WAIT