Fix bug where URL was not actually optional. Closes #36.