Updated flowing mechanics, still buggy though.