Performance improvements. Use Arrays instead of HashMaps.
Better logging and performance improvements for sampler.