Playing with compile options
Add user lock and unlock functions