Added logging switch and play command