Adding stuff for variable array length