More flexibility in service function snippet