Replace comma with semi-colons.
Moved 'updateRigids' outside closure.