Completed all implementation of scr-analysis.py.