Added analysis handler to rules