Added TrueFn, FalseFn, Chain and modified OnPhase