Modularization of all the functionality of adding tags