Added initializeAll and reset() functions for UDAF