Quick fixes

Fixed anonymous function call and added URL storage. Not sure if it is
actually working.