Working version with simulated assignment device.