Implemented menu parsing