Getting in and out of mitosis