Algorithms and effects optimized