Variable reused multiple times caused constant editing, fixing #1