Also, use your isPaused function.