Added support for options parameter instead of just URL