Add limits and use java7

Java 7 will allow using ES 1.3.4, which can be overridden in attributes.