Error logging
Rearrange Url Variable