added timestamping for lights