Adding animal sniffer to ensure code is compatible with Java 6 and removed Java 7 stuff