Added timeout argument to get_ack