Added optional index parameter to play command.