Implemented step 1 of ERA