Implemented url parsing