Merge "Add utility functions for pause and tonewait pause."