Added histogram attack functionality