Updated assignment logic to calculate status on the business layer.