Add main framework.