Added elastic collisions.