More source code from vanilla player.