Set log level to the desired one
Key model: Improving insert_keys method

Avoiding dead locks