Implemented main state