Added local memory switch.