Add main directive