Working on new port manager state machine