FSM memory consumption reduced. Simple Meyers realization of singleton pattern added.