Adding code for star based system.