Prepare for pausing function