Added support for rising edge