Added logic for getting tags information.