electricRay Library Code