Added automatic detection of stores used during transaction