Add error handling
Add cookies to keep track of location