More work on appointments case switch added.