Hooked up effect to memory and added FSM