Finished subject extraction script.