Added waterfall function.