Removed warning and added waiter

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>