Generator : Cleaned reductions and added max/min reduction