Fixed logging problem due to DRYing up lab_spec