Added Occlusion detection