Added code to draw red dots (commented)