Update the CCAction function