Setting up for directive work