Slight change to web storage implementation