Added ability to change the depth position of the elements.