Extracting the directive to make it easier to reuse.