Optimized and fixed ALS1, added log for it