Uses log package instead of inline function
Now uses offlinequeue to schedule events
Merge branch 'offlinequeue'