Add and Remove the Lock Screen Function.