Added logging infrastructure, fixed bug in nonscalable set implementation.