Changed 'port' to 'device'.