Temporary commit, please squash
Got first order connection algorithm working