Added additional logs in debug purposes.