Rewrite Lambda. Remove all functions implicit dependencies. Introduce tolerance and memoization