Simpilfy code analysis method and make it more readable.