Add useAsPort and useAsState functions.