Writing procs to update with Trans