I honestly have no idea what this code is doing... defining an empty array called `frames` and then passing that in? Too magical for me, multi-line please. Lines of code are cheap (especially when split into other methods).