Setting up directive