Refactored file playback