Algorithm getting closer...