Refactored AssignDialog to return a value.