Partially working automatic yScale generation