Merge pull request #3 from sarkis/master

functions called within other custom functions must always pass an array