Use directives to get DRY code