Fixed connections algorithm