Fixing a bug in health param replication.
Making lock timeout a configurable parameter of agent.