Basic log working. Must convert to background JS.