Exit code (but still doesn't work), possible to switch between Local Storage and Google Api)