Fix function definitions and re-order them so they are defined before they are called.
Fix function definitions and re-order them so they are defined before they are called.
cloudkick/cast,cloudkick/cast,cloudkick/cast,cloudkick/cast