Adding pause/unpause to prototype switching