Add console.logs for testing purposes.