Updated to work with newer version of Kibana.