Adding get_serviceplans function