Initial ideias for the performance test

See #3
Fix important issues to make scan work