Rewrite for refactored separate issue, optrecover and exelog. Added logging.
Minor fixes