Support different types of clearing

Various services can now distinguish between normal, manual, and automatic clearing.