Added support for checking if within a Transaction