Cleaned up ERAT