Added code to create connections in entity panel.