Added static context gathering class and comments.