Added functionality for locked regions