Added x,y parameters to generator