commenting out stdout flushing in ack function,
This causes seg fault.