Added little main function to establish connection-stuff