[WIP] Test into

Changed one function around. Wasnt working before, fixed it, added chunksize argument. Not sure if we want this to be a pattern, where we add chunksize arguments for functions which use chunks.

Also the code looks ugly and can probably be done better. 
The old line was causing build errors. Was it because it was missing the '/' before accounts maybe?