Algorithm seems pretty legit now.