Implemented transactions
Changes for script minification.