Add check in 'state' command to give correct address type.