Modified code so it could be combined in whole cell cycle model.