Adds useful functions, multiworld support, raycasting, and events.