Added tag query timing logging