Added ViewContract and contract framework.