To be honest, I couldn't figure out how to set this up properly.  The 'locks' aren't really that well suited or intuitive with regard to the frame and it leaves an uncomfortable gap between a wall and the actual mattress.