Added support for player initialization.