See beginning of sketch for instructions.