Fixed bug in getURL function, now correctly attributes boolean options