The code looks good. Maybe something in the (...) sections prevents it from moving, or the object is created inside a solid object ?