Simplify anaylysis script