Correct for new return values. Added example for queue commands.