Light function moved from direct in sockets