Seperated LTC function from GUI