Bugfixed lot of code
added temp vector for sending after the delay