First version of autolight.