Implemented receiver state machiene