Compiling/working code again. CoM works inside draw function.