Preparing service layer.