Added housekeeping thread