Cleaned up url hash method