Added possibility to enable and disable player controls.