Added queue-size external function.