Make algorithm readonly