Setting main directive