What does direct port manipulation yield?
PIND = 0b00000100; // toggle D2 by writing to the input register.