Working base algorithm!