Defining time service and internal service