Refactor the code. Added QuaratineControlAction