Main run function rewritten in derived engines and improvement of log in base model