Issue #4 duplicate code in queue_bind