Removed printf's

Removed printf's
Added check for URIs already placed in a queue