Created job for enabling logging; code cleanup