Refactor putAssignment to use simpleasync