Added lockEnabled attribute to xml, true by default