Added support for series and parallel