Add main and dependencies