Generates almost good URL, uses two functions instead of one