Building the service layer