Basic algorithm setup established