Adds some console.logs to track server side events better.