Statistics generation: work with phases