Implementation of pause / resume