A bulb detection circuit is associated with a dimmer circuit for a lighting system. Performance of such applications degrades rapidly once the system hits the physical memory limit and starts paging to the local disk. The spreadsheet application generates an XML data file including the parameter values arranged into a table.