Added params support to directives