Added an animation lock to prevent crashing the pebble.