Added layer switcher mechanism.