Improved lock file interface and added support for related nodes and slice on API