Pass options in an array instead of all the arguments