Make die assignment and de-assignment in one method