Added option to pass data via objet literal