Added support to instrument only the unlock function and changed the Lib Delay function to accomodate certain level of randomization. This needs more work