Add pause and resume functions for transaction blocks