Added button click functionality, use_lights etc variables