Pass options obj instead of multiple arguments