Complete the pause function