Adding logging and shellexec