A function to lock/unlock a custom filename has been implemented