Start "smarter" concept for variable function. Does not work yet.