Apparatus and techniques are provided for interfacing a device with a surface. Pixel size is modulated such that smaller pixels are projected to farther portions of the surface, and larger pixels are projected to nearer portions. The amount of memory reserved is determined based on the amount of memory currently reserved for the communication sessions in the dependency list. The secondary reference element is arranged so that the boundary of an electrolyte-deficient region advancing over time from the opening towards the primary reference element arrives at the secondary reference element before reaching the primary reference element.