Define service first