Added ability to set custom parser