Mock service factor function
Add service level setting, see #222