Changed some parameters on directive to make their values dynamic.