Add player not null check. Remove debug.