Create directive objects