Adding mechanism to add/update assignment