Updated for ERA files