State Machine for the FLS task