Finished parse URL function