Implemented Transaction Script