Added NEEDS logging and new transactions commiting.