Updated directives to pass in params