Move create tag into own function