Update transactions code for readability