Added bett
Added new CommandWithStatus class with lock handling