Added Nurit's algorithm
Added flag for nurit and normal