Added code for series