Foundation was just the perfect support for or new memory foam mattress.
The inside measurement of our rails was 531/2” so I had to trim 1/2 inch.  With the right tools, easily done by some but could be a problem for others.
Very satisfying to see the results.