Adds card directive