Fixed printf and if-statement for waiter