Started implementing transaction logging