Added modules option for sample invokes