Added (questionable) collision detection.