Adjusted to be able to send in tag names as well.