It's just a little bit strange to be using a named class (ScanCallback) in one place and an anonymous class in another very similar place. I THINK I slightly prefer anonymizing?