Added option to set if lamp should remember its mode