DO NOT MERGE ME Move check for number of series up