Updated version with more options

Allowing sub arrays to be passed in snippets, chunks