Ported to maven and added host stats