Made pattern generator taller and read values relative to height of container