Implemented first stage