Adding debug flags, tracking ga events