Added series and parallel functions.