Added ability to change layer order