Added other ways to add rays.