Replaced isPaused with position check