Add possibility to specify custom URL

Implements feature requested in #32