Improvements in pg1: Short and long url inputs are also procesed