First pass at ES implementation.