Cleaned up code and added basic light ID retrieval.