Added better handling of initial series and null series. Fixes #4