Code for quasi static analysis