`parser.parse` seems to be (at least sometimes) asynchronous. In that case, this function does not work.