Fixed in/out wrong way round for connections