Changed script to read base URI not entire thing.